<?php
/**
 * File holds default set up for web page, such as configs, includes, 
 * language etc
 */
require_once 'app/Configs/paths.php';
require_once CLASSPATH . 'Misc/Tools.php';

spl_autoload_register('Misc\Tools::autoload');

//load site language file
switch (@$_GET['l']) {
	case 'eng':
		require_once 'i18n/eng.php';
		break;
	default:
		require_once 'i18n/est.php';
		break;
}

//initiate global variable for templates
$smarty = Misc\Tools::initSmarty();